set(root_dir ${CMAKE_CURRENT_SOURCE_DIR})

file(GLOB_RECURSE src_files
    "${root_dir}/*.h"
    "${root_dir}/*.cpp"
)

add_library(abc-util STATIC
    ${src_files}
)

source_group(TREE "${root_dir}/.." FILES ${src_files})

if(MSVC)
target_link_libraries(abc-util
    ${Boost_LIBRARIES}
    zlibstatic
    libpng16_static
    libcrypto
    libssl
    ssh2
    git2
)
else()
target_link_libraries(abc-util
    ${Boost_LIBRARIES}
    git2.a
    ssh2.so
    ssl.a
    crypto.a
    png16.a
    z.a
    dl
)
endif()

